package org.example.bridge;

/**
 * @author
 * @description 手机抽象类
 */
public abstract class Phone {

    private Brand brand;//聚合 =>桥接关系

    //构造器
    public Phone(Brand brand) {
        this.brand = brand;
    }

    protected void call() {
        brand.call();
    }

    protected void close() {
        brand.close();
    }

    protected void open() {
        brand.open();
    }
}
